import { ViewTool } from '@/utils';

/**
 * Central 部件模型
 *
 * @export
 * @class CentralModel
 */
export default class CentralModel {

    /**
     * 菜单项集合
     *
     * @private
     * @type {any[]}
     * @memberof CentralModel
     */
    private items: any[] = [
                {
        	id: 'd15157cb8d73af87f553f85887fdcbf8',
        	name: 'user_menus',
        	text: '用户菜单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '用户菜单',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        }
        ,
                {
        	id: 'e5dcbd32f6a4050109f54d97de44b715',
        	name: 'top_menus',
        	text: '顶部菜单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '顶部菜单',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        	items: [
                		        {
                	id: '76d07a396b5ff6dfe8156b969ef9fb6a',
                	name: 'menuitem3',
                	text: '系统设置',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '系统设置',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-cog',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto26',
                	appfuncyype: 'APPVIEW',
                	viewname: 'setting',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: 'F48CE2BC-A608-49B7-B339-C02D91AF9740',
                        	name: 'menuitem39',
                        	text: '区域',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '区域',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-cog',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto24',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'territory-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: 'E4387964-20DA-4525-B118-DC04F91510D8',
                        	name: 'menuitem26',
                        	text: '货币',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '货币',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-rmb',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto29',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'transaction-currency-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '214745B6-68CB-4548-B138-81E07338033C',
                        	name: 'menuitem4',
                        	text: '链接角色',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '链接角色',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-link',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto27',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'connection-role-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '49CE3694-FE83-4A75-A3DC-87AD0FA3B89D',
                        	name: 'menuitem33',
                        	text: '计价单位',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '计价单位',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-cog',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto21',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'uom-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: 'FD18E8AE-A489-4ACA-BA47-86BB70CA6368',
                        	name: 'menuitem36',
                        	text: '计价单位组',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '计价单位组',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-cog',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto18',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'uom-schedule-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: 'E2201D09-B837-41EF-9B08-4B5FBA56BA68',
                        	name: 'menuitem37',
                        	text: '价目表',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '价目表',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-list-alt',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto31',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'price-level-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '1733455A-A7CF-446B-9BA8-709A45D01D40',
                        	name: 'menuitem38',
                        	text: '折扣表',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '折扣表',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-th-list',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto23',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'discount-type-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: 'C332BAD9-C1DC-44D2-A872-CD400C39C69F',
                        	name: 'menuitem31',
                        	text: '目标度量',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '目标度量',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-line-chart',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto28',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'metric-grid-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '5EC4881D-09C3-4536-A609-333F7A6A6012',
                	name: 'menuitem34',
                	text: '消息通知',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '消息通知',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-bell-o',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                }
                ,
                		        {
                	id: 'CC6EF1FE-F3A2-45A0-8572-BF6ACF6CA6D1',
                	name: 'menuitem35',
                	text: '帮助',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '帮助',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-question',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                }
                ,
        	],
        }
        ,
                {
        	id: '4aea3655e93af303beba942116b04a31',
        	name: 'left_exp',
        	text: '左侧菜单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '左侧菜单',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        	items: [
                		        {
                	id: '1a17fc650d716d88e6a694b4ef927d08',
                	name: 'menuitem18',
                	text: '最近',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '最近',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-clock-o',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                }
                ,
                		        {
                	id: '397f15992c5f2d89eb45c2db2a30b61b',
                	name: 'menuitem19',
                	text: '固定',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '固定',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-thumb-tack',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                }
                ,
                		        {
                	id: 'b6776d6c3b5b271b7bb8b34238fe989c',
                	name: 'menuitem16',
                	text: '我的工作',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '我的工作',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-legal',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: '1f0a683ed841fe47b32eea5b3f90dab2',
                        	name: 'menuitem1',
                        	text: '仪表盘',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '仪表盘',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: true,
                        	iconcls: 'fa fa-line-chart',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto16',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'centeral-portal',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '35fdbf18942b76c215e68e7563687801',
                        	name: 'menuitem2',
                        	text: '活动',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '活动',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-paper-plane',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto9',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'activity-pointer-grid-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: 'b45e8d47cc61dc640b358b367ae5e0f8',
                	name: 'menuitem20',
                	text: '客户',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '客户',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-sitemap',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: 'b96d9b68c2d32e8433bc1a6544acec35',
                        	name: 'menuitem5',
                        	text: '客户',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '客户',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-users',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto30',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'account-status-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '881cab98a5418e8ff6448f06bf437646',
                        	name: 'menuitem7',
                        	text: '联系人',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '联系人',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-user',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto7',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'contact-tab-exp-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: 'b3053fbb709cb27d1f51ce6a905a5c8c',
                	name: 'menuitem21',
                	text: '销售',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '销售',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-credit-card',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: 'dc4e1933767eadfd04742c451d0db341',
                        	name: 'menuitem8',
                        	text: '潜在客户',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '潜在客户',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-phone',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto14',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'lead-status-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '5c49ce38bd48f0679e6b8dd88bade670',
                        	name: 'menuitem9',
                        	text: '商机',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '商机',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-envelope-o',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto10',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'opportunity-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '1bdda8185850a0ffa37bec44707b2047',
                        	name: 'menuitem10',
                        	text: '竞争对手',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '竞争对手',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-user-secret',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto12',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'competitor-grid-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '7865cc7821cd0417f5260b765479666c',
                        	name: 'menuitem25',
                        	text: '目标',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '目标',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-flag-checkered',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto13',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'goal-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '7acd98cbdc56f35c7bbd79c5d35826b2',
                	name: 'menuitem22',
                	text: '宣传资料',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '宣传资料',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-book',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: '3902e57b8693cb2bf8e518bb01984ed6',
                        	name: 'menuitem11',
                        	text: '报价单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '报价单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-file-o',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto5',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'quote-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '8582688e1e8d8bca7d5bf880366ba945',
                        	name: 'menuitem12',
                        	text: '订单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '订单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-file-text-o',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto3',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'sales-order-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: 'c74b2398822a0ebfe19d7df699a40088',
                        	name: 'menuitem13',
                        	text: '发票',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '发票',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-newspaper-o',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto6',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'invoice-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '3830c93006e965fa62c660c2c7a8f9d6',
                        	name: 'menuitem6',
                        	text: '产品',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '产品',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-cube',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto11',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'product-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '299fff0321c1099c0b3879c034987a38',
                        	name: 'menuitem14',
                        	text: '销售宣传资料',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '销售宣传资料',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-book',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto2',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'sales-literature-grid-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '91125f38268e87fdf3f2a532d5cab0b3',
                	name: 'menuitem23',
                	text: '市场营销',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '市场营销',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-shopping-cart',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: '05EC84AA-5E79-47BD-B4B3-4DDAC4971BC1',
                        	name: 'menuitem30',
                        	text: '市场活动',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '市场活动',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-lastfm',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto15',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'campaign-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '9d8a95a162adb059740db3cd304dfd3b',
                        	name: 'menuitem15',
                        	text: '市场营销列表',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '市场营销列表',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-list',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto1',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'ibiz-list-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '359e8fadad16fed7538b6017cfe73c38',
                	name: 'menuitem27',
                	text: '服务',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '服务',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-skyatlas',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	resourcetag: '',
                	items: [
                        		        {
                        	id: '528dbb5c73152a802042ab2376a6fb31',
                        	name: 'menuitem28',
                        	text: '服务案例',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '服务案例',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-wrench',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto8',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'incident-state-tab-view',
                        	resourcetag: '',
                        }
                        ,
                        		        {
                        	id: '4A58B77A-F97D-4B19-A757-75C0A110FB78',
                        	name: 'menuitem32',
                        	text: '知识文章',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '知识文章',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: 'fa fa-files-o',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto17',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'knowledge-article-grid-view',
                        	resourcetag: '',
                        }
                        ,
                	],
                }
                ,
        	],
        }
        ,
                {
        	id: 'a204fcf70ab1a00c493e7128f2cfcd81',
        	name: 'bottom_exp',
        	text: '底部内容',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部内容',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        }
        ,
                {
        	id: '1c23002189e603110b9858de93d5a01d',
        	name: 'footer_left',
        	text: '底部左侧',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部左侧',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        }
        ,
                {
        	id: '28eaf24dc5f9fec02d69fc36e74b1713',
        	name: 'footer_center',
        	text: '底部中间',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部中间',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        }
        ,
                {
        	id: '908c555e923dbc2137a9998e1065a700',
        	name: 'footer_right',
        	text: '底部右侧',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部右侧',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	resourcetag: '',
        }
        ,
    ];

	/**
	 * 应用功能集合
	 *
	 * @private
	 * @type {any[]}
	 * @memberof CentralModel
	 */
	private funcs: any[] = [
        {
            appfunctag: 'Auto8',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'incidentstatetabview',
            deResParameters: [],
            routepath: '/central/:central?/incidents/:incident?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'incidents', parameterName: 'incident' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto13',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'goalstatetabview',
            deResParameters: [],
            routepath: '/central/:central?/goals/:goal?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'goals', parameterName: 'goal' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto9',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'activitypointergridview',
            deResParameters: [],
            routepath: '/central/:central?/activitypointers/:activitypointer?/gridview/:gridview?',
            parameters: [
                { pathName: 'activitypointers', parameterName: 'activitypointer' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto12',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'competitorgridview',
            deResParameters: [],
            routepath: '/central/:central?/competitors/:competitor?/gridview/:gridview?',
            parameters: [
                { pathName: 'competitors', parameterName: 'competitor' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto2',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'salesliteraturegridview',
            deResParameters: [],
            routepath: '/central/:central?/salesliteratures/:salesliterature?/gridview/:gridview?',
            parameters: [
                { pathName: 'salesliteratures', parameterName: 'salesliterature' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto11',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'productstatetabview',
            deResParameters: [],
            routepath: '/central/:central?/products/:product?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'products', parameterName: 'product' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto27',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'connectionrolegridview',
            deResParameters: [],
            routepath: '/central/:central?/connectionroles/:connectionrole?/gridview/:gridview?',
            parameters: [
                { pathName: 'connectionroles', parameterName: 'connectionrole' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto14',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'leadstatustabview',
            deResParameters: [],
            routepath: '/central/:central?/leads/:lead?/statustabview/:statustabview?',
            parameters: [
                { pathName: 'leads', parameterName: 'lead' },
                { pathName: 'statustabview', parameterName: 'statustabview' },
            ],
        },
        {
            appfunctag: 'Auto26',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'setting',
            deResParameters: [],
            routepath: '/central/:central?/setting/:setting?',
            parameters: [
                { pathName: 'setting', parameterName: 'setting' },
            ],
        },
        {
            appfunctag: 'Auto10',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'opportunitystatetabview',
            deResParameters: [],
            routepath: '/central/:central?/opportunities/:opportunity?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'opportunities', parameterName: 'opportunity' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto23',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'discounttypegridview',
            deResParameters: [],
            routepath: '/central/:central?/discounttypes/:discounttype?/gridview/:gridview?',
            parameters: [
                { pathName: 'discounttypes', parameterName: 'discounttype' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto24',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'territorygridview',
            deResParameters: [],
            routepath: '/central/:central?/territories/:territory?/gridview/:gridview?',
            parameters: [
                { pathName: 'territories', parameterName: 'territory' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto30',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'accountstatustabview',
            deResParameters: [],
            routepath: '/central/:central?/accounts/:account?/statustabview/:statustabview?',
            parameters: [
                { pathName: 'accounts', parameterName: 'account' },
                { pathName: 'statustabview', parameterName: 'statustabview' },
            ],
        },
        {
            appfunctag: 'Auto21',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'uomgridview',
            deResParameters: [],
            routepath: '/central/:central?/uoms/:uom?/gridview/:gridview?',
            parameters: [
                { pathName: 'uoms', parameterName: 'uom' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto31',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'pricelevelgridview',
            deResParameters: [],
            routepath: '/central/:central?/pricelevels/:pricelevel?/gridview/:gridview?',
            parameters: [
                { pathName: 'pricelevels', parameterName: 'pricelevel' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto3',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'salesorderstatetabview',
            deResParameters: [],
            routepath: '/central/:central?/salesorders/:salesorder?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'salesorders', parameterName: 'salesorder' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto6',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'invoicestatetabview',
            deResParameters: [],
            routepath: '/central/:central?/invoices/:invoice?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'invoices', parameterName: 'invoice' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto28',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'metricgridview',
            deResParameters: [],
            routepath: '/central/:central?/metrics/:metric?/gridview/:gridview?',
            parameters: [
                { pathName: 'metrics', parameterName: 'metric' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto15',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'campaignstatetabview',
            deResParameters: [],
            routepath: '/central/:central?/campaigns/:campaign?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'campaigns', parameterName: 'campaign' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto18',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'uomschedulegridview',
            deResParameters: [],
            routepath: '/central/:central?/uomschedules/:uomschedule?/gridview/:gridview?',
            parameters: [
                { pathName: 'uomschedules', parameterName: 'uomschedule' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto16',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'centeralportal',
            deResParameters: [],
            routepath: '/central/:central?/centeralportal/:centeralportal?',
            parameters: [
                { pathName: 'centeralportal', parameterName: 'centeralportal' },
            ],
        },
        {
            appfunctag: 'Auto1',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'ibizliststatetabview',
            deResParameters: [],
            routepath: '/central/:central?/ibizlists/:ibizlist?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'ibizlists', parameterName: 'ibizlist' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
        {
            appfunctag: 'Auto29',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'transactioncurrencygridview',
            deResParameters: [],
            routepath: '/central/:central?/transactioncurrencies/:transactioncurrency?/gridview/:gridview?',
            parameters: [
                { pathName: 'transactioncurrencies', parameterName: 'transactioncurrency' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto17',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'knowledgearticlegridview',
            deResParameters: [],
            routepath: '/central/:central?/knowledgearticles/:knowledgearticle?/gridview/:gridview?',
            parameters: [
                { pathName: 'knowledgearticles', parameterName: 'knowledgearticle' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto7',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'contacttabexpview',
            deResParameters: [],
            routepath: '/central/:central?/contacts/:contact?/tabexpview/:tabexpview?',
            parameters: [
                { pathName: 'contacts', parameterName: 'contact' },
                { pathName: 'tabexpview', parameterName: 'tabexpview' },
            ],
        },
        {
            appfunctag: 'Auto5',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'quotestatetabview',
            deResParameters: [],
            routepath: '/central/:central?/quotes/:quote?/statetabview/:statetabview?',
            parameters: [
                { pathName: 'quotes', parameterName: 'quote' },
                { pathName: 'statetabview', parameterName: 'statetabview' },
            ],
        },
	];

	/**
	 * 根据当前路由查找激活菜单
	 *
	 * @param {*} route
	 * @returns {*}
	 * @memberof CentralModel
	 */
	public findActiveMenuByRoute(route: any): any {
		if (route) {
			const func = this.funcs.find((item: any) => {
				if (item.openmode === '') {
					const url: string = ViewTool.buildUpRoutePath(route, route.params, [], item.parameters, [], {});
					return url === route.fullPath;
				}
			});
            if (func) {
			    return this.findMenuByFuncTag(func.appfunctag);
            }
		}
	}

	/**
	 * 根据应用功能id查找菜单项
	 *
	 * @param {string} tag
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof CentralModel
	 */
	public findMenuByFuncTag(tag: string, menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.appfunctag === tag) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(tag, item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

	/**
	 * 查找默认打开菜单
	 *
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof CentralModel
	 */
	public findDefaultOpenMenu(menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.opendefault === true) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

    /**
     * 获取所有菜单项集合
     *
     * @returns {any[]}
     * @memberof CentralModel
     */
    public getAppMenuItems(): any[] {
        return this.items;
    }

	/**
	 * 根据名称获取菜单组
	 *
	 * @param {string} name
	 * @returns {*}
	 * @memberof CentralModel
	 */
	public getMenuGroup(name: string): any {
		return this.items.find((item: any) => Object.is(item.name, name));
	}

    /**
     * 获取所有应用功能集合
     *
     * @returns {any[]}
     * @memberof CentralModel
     */
    public getAppFuncs(): any[] {
        return this.funcs;
    }
}